/**
 * -------------------------------------------------------------*
 *                     COPYRIGHT(C) 2018                        *
 *   National Audit Office of the People’s Republic Of China    *
 *                                                              *
 *                                                              *
 *  This work contains confidential business information        *
 *  and intellectual property of CNAO.                          *
 *  All rights reserved.                                        *
 * -------------------------------------------------------------*
 */
package org.eclipse.wb.swt;

import org.eclipse.swt.graphics.Image;

import com.sgq.ui.component.Splash;

/**
 * 继承自SWTResourceManager扩展了获取项目Classpath下images中图片的方法（因为SWTResourceManager会自动生成发生变动，所以此处采用了继承）
 * @author scheglov_ke
 * @author Dan Rubel
 */
public class SWTResourceManager2 extends SWTResourceManager {

	/**
	 * 根据图片名称获取项目classpath的images（src/main/resources/images）文件夹下的图片文件
	 * @param imgName
	 * @return
	 */
	public static Image getImageByName(String imgName) {
		return getImage(Splash.class, "/images/" + imgName);
	}
	
}